﻿using FreeSql.DataAnnotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZhonTai.Admin.Core.Entities;
using ZhonTai.Industry.Core.Enums;
using ZhonTai.Industry.Domain.ProductRoute;

namespace ZhonTai.Industry.Domain.WorkOrderTask
{
    /// <summary>
    /// 订单计划
    /// </summary>
    /// <remarks>订单计划</remarks>
    [Table(Name = "prd_work_order_tasks")]
    public class WorkOrderTaskEntity : EntityBase
    {
        /// <summary>
        /// 订单ID
        /// </summary>
        /// <remarks></remarks>
        public long OrderId { get; set; }

        /// <summary>
        /// 产线ID
        /// </summary>
        /// <remarks></remarks>
        public long? LineId { get; set; }

        /// <summary>
        /// 产品型号ID
        /// </summary>
        /// <remarks></remarks>
        public long ProductModelId { get; set; }

        /// <summary>
        /// 班次ID
        /// </summary>
        /// <remarks></remarks>
        public long ShiftId { get; set; }

        /// <summary>
        /// 计划数量
        /// </summary>
        /// <remarks></remarks>
        public int PlanCount { get; set; }

        /// <summary>
        /// 在线数量
        /// </summary>
        /// <remarks></remarks>
        public int OnLineCount { get; set; }

        /// <summary>
        /// 完成数量
        /// </summary>
        /// <remarks></remarks>
        public int SuccessCount { get; set; }

        /// <summary>
        /// 失败数量
        /// </summary>
        /// <remarks></remarks>
        public int FailCount { get; set; }

        /// <summary>
        /// 实际开始时间
        /// </summary>
        /// <remarks></remarks>
        public DateTime? ActualStartDate { get; set; }

        /// <summary>
        /// 实际结束时间
        /// </summary>
        /// <remarks></remarks>
        public DateTime? ActualEndDate { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        /// <remarks>排序</remarks>
        public int Sort { get; set; }

        /// <summary>
        /// 订单状态
        /// </summary>
        /// <remarks></remarks>
        public OrderEnum State { get; set; }
    }
}